//存储好友申请事件
#pragma once
#include <string>
#include <cstddef>
#include <odb/nullable.hxx>
#include <odb/core.hxx>

namespace zzy_mims
{
    #pragma db object table("friend_apply")
    class FriendApply 
    {   
    public:
        FriendApply(){};
        ~FriendApply(){};

        FriendApply(const std::string& event_id,const std::string& sender_id,const std::string& accepter_id)
        :_event_id(event_id),_sender_id(sender_id),_accepter_id(accepter_id){};

        void event_id(const std::string& val){_event_id = val;};
        std::string event_id()
        {
            return _event_id;
        }

        void sender_id(const std::string& val){_sender_id = val;};
        std::string sender_id()
        {
            return _sender_id;
        }
        void accepter_id(const std::string& val){_accepter_id = val;};
        std::string accepter_id()
        {
            return _accepter_id;
        }

    private:
        friend class odb::access;

        #pragma db id auto
        unsigned long _id;

        #pragma db type("varchar(64)") index
        std::string _event_id;

        #pragma db type("varchar(64)")
        std::string _sender_id;
        #pragma db type("varchar(64)")
        std::string _accepter_id;

    };
}